package com.block.product.service.impl;

import com.block.db.entity.PageTypeInfo;
import com.block.db.mapper.PageTypeInfoMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.block.product.service.IPageTypeInfoService;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 
 * @since 2022-08-08
 */
@Service
public class PageTypeInfoServiceImpl extends ServiceImpl<PageTypeInfoMapper, PageTypeInfo> implements IPageTypeInfoService {

    @Override
    public String getPageUrlByType(String pageType) {
        PageTypeInfo pageTypeInfo = this.baseMapper.getPageUrlByType(pageType);
        return pageTypeInfo.getPageUrl();
    }
}
